package com.ruoyi.examation.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.examation.domain.ExamClassExam;
import com.ruoyi.examation.vo.ExamClassExamVo;
import com.ruoyi.examation.mapper.ExamClassExamMapper;
import com.ruoyi.examation.service.IExamClassExamService;

import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 班次考试关系Service业务层处理
 *
 * @author Tellsea
 * @date 2025-09-29
 */
@Service
public class ExamClassExamServiceImpl extends ServiceImpl<ExamClassExamMapper, ExamClassExam> implements IExamClassExamService {

    @Override
    public TableDataInfo<ExamClassExamVo> queryList(ExamClassExamVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<ExamClassExamVo> queryAll(ExamClassExamVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public ExamClassExamVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }

    @Override
    public TableDataInfo<ExamClassExamVo> queryExamClassList(ExamClassExamVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryExamClassList(PageUtils.buildPage(), entity));
    }
}
